<template>
    <div class="loading">
        <div class="box"></div>
        <span>加载中...</span>
    </div>
</template>
<script>
</script>
<style scoped lang="scss">
.loading {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110px;
    height: 105px;
    border-radius: 10px;
    background-color: rgba(0, 0, 0, .7);
    padding: 20px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: space-around;
    padding-bottom: 15px;

    .box {
        position: relative;
        width: 40px;
        height: 40px;
        display: flex;
        justify-content: center;
        border-radius: 50%;
        border: 4px solid rgba(255, 255, 255, .8);
        border-left-color: rgb(255, 255, 255);
        animation: anim .7s infinite linear;

    }

    span {
        font-size: 14px;
        color: white;
    }
}

@keyframes anim {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}
</style>